package baseFx.common.mq.impl;

import baseFx.common.EventArgs;
import baseFx.common.EventDispatcher;

import java.util.UUID;

class MsgContext extends EventArgs {
    private static String msgKey = UUID.randomUUID().toString();
    public static EventDispatcher<MsgContext> eventMsg = new EventDispatcher<>(msgKey);

    public String queue;
    public String data;

    public void fire(Object sender) {
        eventMsg.fire(msgKey, sender, this);
    }
}
